﻿using Com.FastSearch.Esp.Search.Result;
using Com.FastSearch.SharePoint.Interfaces;

namespace Com.FastSearch.SharePoint.BL.SearchManager
{
    class ESPDocumentSummary : IESPDocumentSummary
    {
        private readonly IDocumentSummary _Summary;
        public ESPDocumentSummary(IDocumentSummary Summary)
        {
            _Summary = Summary;
            Values = new System.Collections.Specialized.NameValueCollection();

            for(int i=0;i<_Summary.FieldCount(); i++)
            {

                // TODO: This is temporary for testing only
                IDocumentSummaryField f = _Summary.GetSummaryField(i);

                Values.Add(f.Name,  f.StringValue);
            }
        }

        #region IESPDocumentSummary Members

        public System.Collections.Specialized.NameValueCollection Values
        {
            get;
            set;
        }
       
        #endregion
    }
}
